package com.yht.org.service;

import com.yht.basic.util.QueryResult;
import com.yht.org.domain.Employee;
import com.yht.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    /*添加*/
    void add(Employee employee);
    /*删除*/
    void delete(Long id);
    /*修改*/
    void update(Employee employee);
    /*根据id查询*/
    Employee findById(Long id);
    /*查询所有*/
    List<Employee> findAll();
    /*分页查询*/
    QueryResult<Employee> findByEmployeeQuery(EmployeeQuery employeeQuery);
}
